﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CaseWarningDeptHomeUserControl.ascx.cs" Inherits="JM.JCY.SharePointComponent.CaseManagement.CaseWarningDeptHome.CaseWarningDeptHomeUserControl" %>
<script type="text/javascript">


    $(document).ready(function () {
        $("#toggleCaseWarning1").click(function () {
            var div = document.getElementById("divToggleCaseWarning");
            if (div.style.display == "") {
                div.style.display = "none";
                $("#imgToggleCaseWarning").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_expand.png");

            }
            else {
                div.style.display = "";
                $("#imgToggleCaseWarning").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_collapse.png");
            }
        });

        $("#toggleCaseWarning2").click(function () {
            var div = document.getElementById("divToggleCaseWarning");
            if (div.style.display == "") {
                div.style.display = "none";
                $("#imgToggleCaseWarning").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_expand.png");

            }
            else {
                div.style.display = "";
                $("#imgToggleCaseWarning").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_collapse.png");
            }
        });

    });
  

</script>

<div>
    <table class="main" width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <table class="webpart" width="450" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th class="title" align="left" id="toggleCaseWarning1" style="cursor: pointer" width="50%">
                            <img src="/_layouts/JM.JCY.Resource/images/error2.png" width="24"/>
                            部门案件预警
                        </th>
                        <th id="toggleCaseWarning2" class="link" align="right" style="cursor: pointer" width="50%">
                            <img class="toggle" id="imgToggleCaseWarning" src="/_layouts/JM.JCY.Resource/images/toggle_collapse.png" />
                        </th>
                    </tr>
                  
                    <tr><td colspan=2><asp:Label ID="NoRecord" runat="server" ForeColor="#CC3300" Text="您好，本部门还没有被预警的案件！"
                                Visible="false"></asp:Label></td></tr>
                                <tr>
                        <td colspan="2">
                            <div id="divToggleCaseWarning">
                                <asp:GridView ID="gvCaseWarning" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
                                                GridLines="Horizontal" CssClass="altrowstablebc" Width="100%" 
                                                OnRowDataBound="gvCaseWarning_RowDataBound" 
                                    EnableModelValidation="True">
                                                <Columns>
                                              
                                                    <asp:BoundField HeaderText="案号" DataField="C_AH"/>
                                                    <asp:BoundField HeaderText="承办部门" DataField="C_CBBM">
                                                    <HeaderStyle Width="20%" />
                                                    <ItemStyle Width="20%" />
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderText="承办人" DataField="C_CBR">
                                                    <HeaderStyle Width="20%" />
                                                    <ItemStyle Width="20%" />
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderText="超期天数" DataField="N_CQTS">
                                              
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                    </asp:BoundField>
                                              
                                                </Columns>
                                            </asp:GridView>
                                 
                                <br />
                       
                                 <hr />
                                <table width="100%">
                                    <tr>
                                        <td width="40%">
                                         
                                        </td>
                                        <td align="right" width="40%">
                                            <asp:LinkButton ID="lbViewAllDiscussion" runat="server" 
                                                onclick="lbViewAllDiscussion_Click">更多...</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>